my_list = ['一帆风顺', '双喜临门', '三羊开泰', '四季发财', '五福临门', '六六大顺']


def while_recursion_list():
    """
    使用while循环遍历列表
    :return:
    """
    i = 0
    length = len(my_list)
    while i < length:
        print(F'while: {my_list[i]}')
        i += 1


def for_recursion_list1():
    """
    使用for循环遍历列表1
    :return:
    """
    for i in range(0, len(my_list)):
        print(F'for1: {my_list[i]}')


def for_recursion_list2():
    """
    使用for循环遍历列表2
    :return:
    """
    for elem in my_list:
        print(F'for2: {elem}')


while_recursion_list()
print('🍀🍀🍀🍀🍀🍀')
for_recursion_list1()
print('🍀🍀🍀🍀🍀🍀')
for_recursion_list2()
